import java.util.Scanner;
public class Test048 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个你想判断是否为回文数的数字：");
        int x = sc.nextInt();
        int temp = x;
        int num = 0;
        while(x != 0){
            int ge = x % 10;
            x = x / 10;
            num = num * 10 + ge;
        }
        boolean result = num == temp;
        System.out.println(result);
    }
}
